﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Common.DataAnnotations
{
    /// <summary>
    /// 银行卡验证（8-30位纯数字）
    /// </summary>
    public class BankCardAttribute : RegularExpressionAttribute
    {
        const string BankCard = @"^\d{8,30}$";
        /// <summary>
        /// 银行卡验证（8-30位纯数字）
        /// </summary>
        public BankCardAttribute() : base(BankCard)
        {
        }
    }
}
